<?php 
include_once '../config/common.php';
	$username=$_POST["param"];
if(isset($username))
{
$sql="select name from admin where name='$username'";
$query=$commonc->query($sql,mysql_query); 
if(is_array($commonc->fetch_array($query))){ 
echo "用户名已存在!";
}else{
echo "y";
 }
}
 
?>